import Cookies from 'js-cookie'

const TokenKey = 'SC-ACCESS-TOKEN'
const Timekey = 'timestamp-key'


export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

//设置过期时间
export function getTimeStamp() {
  return Cookies.get(Timekey)
}
export function setTimeStamp() {
  return Cookies.set(Timekey, Date.now())
}


//获取当前时间戳
export function getCurrentTime() {
  // 获取当前时间的本地时间戳（以毫秒为单位）
const localTimestampMs = Date.now();



  return localTimestampMs
}
